export function renderLogin() {
    //卸载组件
    const rightBody = document.querySelector("right-body");
    const navBar = rightBody.shadowRoot.querySelector('nav-bar');
    const navContent = navBar.shadowRoot.querySelector('.nav-content');
    const userActions = navBar.shadowRoot.querySelector('user-actions');
    userActions.remove();

    //从新写入navContent
    const userActions2 = document.createElement('user-actions');
    navContent.appendChild(userActions2);

    //对侧边栏组件清空内容 ， 实现再渲染
    const leftMenu = document.querySelector('left-menu');
    //清空
    leftMenu.renderClear();
    //从新渲染
    leftMenu.render();
}